package com.ds.springboot.mapper;

import com.ds.springboot.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @program: springboot-1-cache
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-05-26
 **/
public interface UserMapper {

    @Select("select * from user where name=#{name} and address=#{pwd}")
    User login(@Param("name")String userName,@Param("pwd")String address);
}
